package com.xuchang.mapper;

import com.xuchang.domain.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author xuchang
* @description 针对表【sys_role(角色)】的数据库操作Mapper
* @createDate 2025-06-29 22:19:06
* @Entity com.xuchang.domain.SysRole
*/
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 获取用户角色Code的实现
     * @param userId
     * @return
     */
    String getUserRoleCode(Long userId);
}




